package com.zimmur.service.goods;


import java.util.List;
import java.util.Map;

import com.zimmur.model.goods.GoodsOrganization;
import com.zimmur.model.goods.view.GoodsOrganizationView;
import com.zimmur.tools.PageUtil;

public interface IGoodsOrganizationService {
	/**
	 * 根据页码查询闪创商品
	 * @param pageNo
	 * @return
	 */
	PageUtil<GoodsOrganizationView> selectIndexPage(int pageNo,String keyWord);
	/**
	 * 查询闪创首页数据
	 * @return
	 */
	Map<String, Object> selectIndex();
	/**
	 * 根据商品id查询闪创信息
	 * @param goodsId
	 * @return
	 */
	GoodsOrganization selectByGoodsId(long goodsId);
	/**
	 * 查询推荐商品
	 * @param num 商品数量
 	 * @return
	 */
	List<GoodsOrganizationView> selectRecommend(int num);
	/**
	 * 通过organizationId 动态更新数据
	 * @param goodsOrganization
	 * @return
	 */
	int updateOrganizationByKey(GoodsOrganization goodsOrganization);
	/**
	 * 查询活动时间已到，还未结束的闪创活动
	 * @param UnixTime
	 * @return
	 */
	List<GoodsOrganization> selectGoodsOrganizatonByTime(int unixTime);
}
